import React, { CSSProperties } from 'react';
import { createFromIconfontCN } from '@ant-design/icons';

const IconFont = createFromIconfontCN({
  scriptUrl: '//at.alicdn.com/t/font_1935126_qu3g3qaat1.js',
});

interface propsType {
    type:string,
    style?:CSSProperties
}

function Icon(props:propsType) {
  const { type, style } = props;
  return <IconFont type={type} style={style} />;
}
export default Icon;
